#!/bin/bash

#判断对应Node是否运行

array=(`rosnode list`)

nodes=(/k4a_ros_node /acu2base_coordinate_node /acu2camera_coordinate_node /acupoint_detect_node /acupoint_pixel_filter_node /aruco_detect_node /get_leg_line_coordinate_node /agv_node)
for node in ${nodes[@]}
do 
    if echo "${array[@]}" | grep -w ${node} &>/dev/null; then
        continue
    else
        echo "-1:" ${node} "Not Found"
        exit -1
    fi
done

echo "0: Node start"


